<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='新增生产任务')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/Production/addProductionTask.css}" rel="stylesheet" />
<body class="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="margin: 10px;">
					<div>
						<div class="">
							<div class="mainTitle">
								<span>生产任务单</span>
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>
								<input type="text" id="fBillNo" name="fBillNo" class="form-control clean_c" autocomplete="off" readonly="readonly" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">生产类型：</span>
								<input type="text" id="" name="" class="form-control" autocomplete="off" readonly="readonly" value="普通订单" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">销售单号：</span>
								<input type="text" id="fOrderNo" name="fOrderNo" class="form-control clean_c" autocomplete="off" />
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">产品代码：</span>
								<input type="text" id="fNumber" name="fNumber" class="form-control clean_c" autocomplete="off" />
								<input type="hidden" id="fItemId" name="fItemId" class="form-control clean_c" autocomplete="off" />
								<ul id="searchResult" class="searchResult typeahead dropdown-menu" style="display: none;max-height: 200px;overflow-y:auto;left:119px;"></ul>
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">产品名称：</span>
								<input type="text" id="fName" name="fName" class="form-control clean_c" autocomplete="off" readonly="readonly" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">规格型号：</span>
								<input type="text" id="fModel" name="fModel" class="form-control clean_c" autocomplete="off" readonly="readonly" />
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：</span>
								<input type="text" id="fUnitName" name="fUnitName" class="form-control clean_c" autocomplete="off" readonly="readonly" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">BOM编号：</span>
								<input type="text" id="bomCode" name="bomCode" class="form-control clean_c" autocomplete="off" readonly="readonly" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">工艺路线：</span>
								<input type="text" id="processRoute" name="processRoute" class="form-control clean_c" autocomplete="off" readonly="readonly" />
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">生产车间：</span>
								<select name="fWorkShop" id="fWorkShop" class="selectpicker clean_c " data-live-search="true" data-width="70%">
								</select>
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">计划生产数量：</span>
								<input type="text" id="fQty" name="fQty" class="form-control clean_c" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">计划开工日期：</span>
								<input type="text" id="fPlanCommitDate" name="fPlanCommitDate" class="form-control clean_c" autocomplete="off"/>
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">计划完工日期：</span>
								<input type="text" id="fPlanFinishDate" name="fPlanFinishDate" class="form-control clean_c" autocomplete="off" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">单据来源：</span>
								<input type="text" id="" name="" class="form-control" autocomplete="off" readonly="readonly" value="MES手工录入" />
							</div>
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">单据状态：</span>
								<input type="text" id="" name="" class="form-control" autocomplete="off" readonly="readonly" value="下达" />
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-4 col-md-4">
								<span class="spanTitle">制单日期：</span>
								<input type="text" id="fDate" name="fDate" class="form-control clean_c" autocomplete="off" readonly="readonly" disabled="true"/>
							</div>
							<div class="col-sm-4 col-md-4">
							</div>
							<div class="col-sm-4 col-md-4">
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-12 col-md-12">
								<span class="spanTitle">备注：</span>
								<textarea id="fNote" name="fNote" class="form-control clean_c textareaContent" rows="2" autofocus="off"></textarea>
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-12 col-md-12">
								<span class="spanTitle">摘要：</span>
								<textarea id="fExplanation" name="fExplanation" class="form-control clean_c textareaContent" rows="1" autofocus="off"></textarea>
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop">
							<div class="col-sm-12 col-md-12">
								<span class="requiredCss">注：点击物料代码输入框按F7后，能弹出选择物料代码对话框！</span>
							</div>
						</div>
						<div class="col-sm-12 col-md-12 divTop" style="text-align: center;">
							<div class="col-sm-12 col-md-12">
								<button id="save" class="btn btn-default" type="button" style="margin-right: 25px;">保存</button>
								<button id="resetting" class="btn btn-default" type="button">重置</button>
							</div>
						</div>
						
						<!-- 调用showModal里的queryModal，查询行 -->
						<div th:include="Production/showModal :: queryModal" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<span id="value" style="display: none;">9</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: ztree" />
	<div th:include="base :: others" />
	<script th:src="@{js/Production/addProductionTask.js}"></script>
	<script th:src="@{js/Production/showModal.js}"></script>
</body>
</html>
